package com.hst.web.base.service.impl;

import com.hst.web.base.entity.TContract;
import com.hst.web.base.mapper.TContractMapper;
import com.hst.web.base.service.TContractService;
import com.hst.web.base.ui.TContractDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Auther: liwei
 * @Date: 2024/04/21/0021 - 04 - 21 - 13:29
 * @Description: com.hst.web.base.service.impl
 * @version: 1.0
 */
@Service
public class TContractServiceImpl implements TContractService {

    @Autowired
    private TContractMapper tContractMapper;

    @Override
    public List<TContract>  hisContract(String papersNumber) {
        return tContractMapper.hisContract(papersNumber);
    }

    @Override
    public List<TContractDTO> hisContract_One(String papersNumber) {
        return tContractMapper.hisContract_One(papersNumber);
    }

    @Override
    public List<TContract> getContract(String papersNumber) {
        return tContractMapper.getContract(papersNumber);
    }

    @Override
    public List<TContract> getContract_One(String papersNumber) {
        return tContractMapper.getContract_One(papersNumber);
    }

    @Override
    public int addContract(TContract contract) {
        return tContractMapper.addContract(contract);
    }
}
